package main

import (
	"fmt"
	"github.com/panjf2000/ants"
)

func main() {
	pool, err := ants.NewPool(2)
	if err != nil {
		return
	}
	err = pool.Submit(func() {
		fmt.Printf("aaa")
	})
	if err != nil {
		return
	}
}
